package main

import "fmt"

func main() {

	for i := 0; i < 10; i++ {
		fmt.Println(i)
	}

	var b int = 15
	var a int

	numbers := [6]int{1, 2, 3, 5}

	for a := 0; a < b; a++ {
		fmt.Println(a)
	}

	for a < b {
		a++
		fmt.Println(a)
	}

	for i, number := range numbers {
		if i > 4 {
			break
		}
		fmt.Printf("索引%d, value=%d \n", i, number)
	}
}
